//商品相关的请求
import http from '../request';
//获取商品列表
export function getGoodListApi(params) {
  return http({
    method: 'get',
    url: '/api/shop/goods',
    params,
  });
}
//请求单个商品的详细信息
export function getGoodDetailApi(id) {
  return http({
    method: 'get',
    url: `/api/shop/goods/${id}`,
  });
}
//获取所有分类
export function getClassifyApi(params) {
  return http({
    method: 'get',
    url: '/api/shop/classify',
    params,
  });
}
//获取商品规格
export function getGoodSpecApi(params) {
  return http({
    method: 'get',
    url: '/api/shop/getKeyValue',
    params,
  });
}
